<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);

String outPatientVisitInfoJson= (String)request.getAttribute("outPatientVisitInfoJson");
String success= (String)request.getAttribute("success");
%>
<link href="${basePath}/static/css/Pigeonhole/Pigeonhole_list.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet"
	href="${basePath}/static/css/medicalRecord_Search/medicalSearch.css" />
<script type="text/javascript"
	src="${basePath}/static/publics/assets/jqPaginator/jqPaginator.js"></script>
	<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<div class="list_NR">
	<div class="loc">
		<h3>统计报告</h3>
		<ul class="loc_loc">床位指标
		</ul>
	</div>

	<div class="list_con_table">
		
	<table style="width: 100%;" cellpadding="0" cellspacing="0" id="table">
		<tbody>
			<tr>

				<td colspan="6" style="text-align: right;"><input type="button"
					value="保存" class="btn" onclick="saveBedIndexInfo()"> <input
					type="button" value="导出" class="btn" onclick="exportBedIndexInfo()">
				</td>
			</tr>

			<tr>
				<td class="tdLabel_7" style="width: 10%">床位相关指标</td>


				<td class="tdLabel_8" colspan="7"><textarea
						style="width: 95%; height: 150px" name="note">${bedIndexInfo.bedIndexText}</textarea>
				</td>
			</tr>

			<tr>
				<td class="tdLabel_7" style="width: 10%">说明</td>
				<td class="tdLabel_8" colspan="7"><textarea
						style="width: 95%; height: 120px" id="note">${bedIndexInfo.bedIndexNote}</textarea>
				</td>
			</tr>

			<tr>



				<td class="tdLabel_8" colspan="7" style="width: 780px">
					<div style="height: auto;">
						<table class="Search_tableList" style="margin: 0 auto;"
							id="diseaseDiagTable" cellpadding="0" cellspacing="0">

							<thead>
								<tr>
									<td colspan="6" style="text-align: center; font-size: 16px;">
										表1 床位相关指标</td>
								</tr>

								<tr>
									<td class="tdLabel_4" width="14.2%"></td>
									<td class="tdLabel_4" width="14.2%">实有床位（张）</td>
									<td class="tdLabel_4" width="14.2%">实际开放总床日数</td>
									<td class="tdLabel_4" width="14.2%">实际占用总床日数</td>
									<td class="tdLabel_4" width="14.2%">出院者占用总床日数</td>
									<td class="tdLabel_4" width="14.5%">病床周转率（次）</td>
									<td class="tdLabel_4" width="14.5%">病床使用率（%）</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="bedRecord"
									items="${bedIndexInfo.bedIndexRecordList}">
									<tr>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.title}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.realBeds}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.actualAvailableBedDays}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.actualUseBedDays}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.dischargedBedDays}' /></td>
										<td class="tdLabel_8" width="14.5%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.bedRoateRate}' /></td>
										<td class="tdLabel_8" width="14.5%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.bedUseRate}' /></td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</td>
			</tr>







		</tbody>
	</table>


	</div>




</div>
<script type="text/javascript"
	src="${basePath}/static/publics/assets/My97DatePicker/WdatePicker.js"></script>


<script>
//保存
function saveBedIndexInfo() {
	var note = $("#note").val();
	$.ajax({
		type : "post",
		data : {
		
			note : note
		},
		url : "${basePath}/report/saveBedIndexInfo",
		success : function(data) {
			layer.alert(data.msg,{icon:1});
		}
	})

}

function exportBedIndexInfo() {
	var month = $("#month").val();
	window.location.href = "${basePath}/report/exportBedIndexInfoWord";
}

</script>